import request from "@/utils/request";
//登陆接口
export const loginApi = (data) => request.post("user/login", data);
//验证码接口
export const codeApi = () => request.get("/api/captcha");
//保存数据接口
export const saveApi = (data) => request.post("user/save", data);

//根据部门id查询人员
export const findByDeptIdApi = (deptId) => request.get(`user/findByDeptId/${deptId}`);

//查询所有人员接口
export const queryAllApi = () => request.get("user/selectAll");